<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>成绩评定</title>

</head>
<body>
<div id="app">
    <p v-if="gender===1">性别：男</p>
    <p v-else-if="gender===2">性别：女</p>
    <p v-else>性别未知</p>
    <hr>
    <p v-if="score>90">成绩评定为A</p>
    <p v-else-if="score>=70">成绩评定为B</p>
    <p v-else-if="score>=60">成绩评定为C</p>
    <p v-else>成绩评定为D</p>
</div>
<script src="vue.global.js"></script>
<script>
    const app = Vue.createApp({
        data(){
            return{
                gender:5,
                score:100
            }

                }
    }).mount('#app')
</script>
</body>
</html>
